import request from '@/utils/request'

// 计算教务成绩
export function calcScore(data) {
  return request({
    url: '/score/calculateGrade.zepc',
    method: 'post',
    data
  })
}

// 获取教务成绩列表
export function getScoreList(data) {
  return request({
    url: 'score/sel_jwcj.zepc',
    method: 'post',
    data
  })
}
// 获取教务成绩列表
export function modifyUserScore(data) {
  return request({
    url: 'score/modify.zepc',
    method: 'post',
    data
  })
}

// Excel导入重修名单
export function importChongxiu(formdata) {
  return request({
    url: 'score/importReset.zepc',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data' // 之前说的以表单传数据的格式来传递fromdata
    },
    data: formdata
  })
}
